package crawler4j.configuracao;

import java.util.Map;
import java.util.TreeMap;

import crawler4j.modelo.Pagina;

public class Parametros {
         
	public static String SEPARATOR = System.getProperty("file.separator");
	public static String ARMAZENAMENTO = System.getProperty("user.dir")
			+ SEPARATOR +"dados";
	
	//Tags
	public static String DESCRICAO = "meta[name=description]";
	public static String PALAVRAS_CHAVE = "meta[name=keywords]";
		
	public static String URL = "meta[property=og:url]";
	public static String TITULO = "meta[property=og:title]";
	public static String TIPO_PAGINA = "meta[property=og:type]";
	public static String IAMGEM = "meta[property=og:image]";
	public static String VIDEO = "meta[property=og:video]";
	
	public static String DURACAO = "meta[itemprop=duration]";
	public static String AUTOR = "watch7-user-header";
	public static String LIKES = "span[class=likes-count]";
	public static String DISLIKES = "span[class=dislikes-count]";
	public static String DATA = "span[id=eow-date]";
	public static String CATEGORIA = "p[id=eow-category]";
	public static String VISUALIZACOES = "watch7-views-info";
		  
	public static String URLSEED = "http://www.youtube.com/";	   
	public static void setUrl(String url) {
		URLSEED = url;
	}
   
	public static Map<String,Pagina> paginasCache;   
	public static Map<String, Pagina> getPaginasCache() {
		if (paginasCache == null) {
			paginasCache = new TreeMap<String, Pagina>();
			return paginasCache;
		} else {
			return paginasCache;
		}
	}   
}
